<template>
	<view class='msg-box'>
		<view class="title">
			{{details.recordName}}
		</view>
		<view class="mt-30 mb-40">
			<bs-line></bs-line>
		</view>
		<view class="post-list">
			<view class="left">
				<view class="name mb-20">
					{{details.profession||'暂无职位'}}
				</view>
				<view class="name">
					182********
				</view>
			</view>
			<image @click='handBigImg(codeImg)' class="ewm-code" :src="codeImg" mode=""></image>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			details: {
				type: Object,
				default: () => {}
			},
			codeImg: {
				type: String,
				default: ""
			}
		},
		data() {
			return {

			};
		},
		methods: {
			handBigImg(img) {
				uni.previewImage({
					current: 0,
					urls: [img]
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.msg-box {
		background: #FFFFFF;
		box-shadow: 0 0 26px 0 rgba(18, 27, 83, 0.07);
		border-radius: $bs-border-radius-12;
		padding: 30rpx 50rpx 40rpx 50rpx;

		.title {
			font-size: 40rpx;
			color: $bs-color-title;
		}

		.post-list {
			@include my-flex($jc: $bs-sb, $ai:center);

			.left {
				.name {
					position: relative;
					padding-left: 18rpx;

					&::after {
						content: '';
						position: absolute;
						left: 0;
						top: 50%;
						margin-top: -4rpx;
						width: 8rpx;
						height: 8rpx;
						background-color: $bs-color-theme;
						border-radius: 50%;
					}
				}
			}

			.ewm-code {
				width: 116rpx;
				height: 116rpx;
			}
		}
	}
</style>
